import Vue from 'vue'
import Router from 'vue-router'
import Login from './Login.vue'
import Index from './Index.vue'
import Article from './article/Article.vue'
import Classify from './classify/Classify.vue'
import Tag from './tag/Tag.vue'
import Comment from './comment/Comment.vue'
import Home from './Home.vue'



Vue.use(Router)

export default new Router({
  routes: [
    {
      path:'/',
      redirect:'/login'
    },
   {
     path:'/login',
     component:Login
   },
   {
     path:'/index',
     component: Index,
     children:[  
       {
        path:'article',
        component: Article,
       },
       {
         path:'classify', 
         component:Classify
       },
       {
         path:'tag',
         component:Tag
       },
       {
         path:'comment',
         component:Comment
       },
       {
         path:'home',
         component:Home
       }
     ]
   }
  ]
})
